﻿using System.Collections.Generic;
using CH.FourBoards.LagerWalti.Persistence.Entities;

namespace CH.FourBoards.LagerWalti.Persistence.DataAccess.EntityProviders
{
    internal interface IEntityProvider
    {
        IEntity Select(int id);
        IEnumerable<IEntity> SelectAll(bool eagerlyLoading = false);
        IEntity Insert(IEntity entity);
        void Update(IEntity entity);
        void Delete(IEntity entity);
    }
}
